package net.synck.gcontacts.ui;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Link;

public class LoginDialogComposite extends Composite {

	private Label label = null;
	private Label label1 = null;
	private Text textLogin = null;
	private Text textPassword = null;
	private Button checkBoxSavePassword = null;
	private Label label2 = null;
	private Link link = null;

	public LoginDialogComposite(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		GridData gridData3 = new GridData();
		gridData3.horizontalAlignment = GridData.END;
		gridData3.verticalAlignment = GridData.CENTER;
		GridData gridData2 = new GridData();
		gridData2.horizontalAlignment = GridData.END;
		gridData2.verticalAlignment = GridData.CENTER;
		GridData gridData1 = new GridData();
		gridData1.horizontalAlignment = GridData.FILL;
		gridData1.grabExcessHorizontalSpace = true;
		gridData1.verticalAlignment = GridData.CENTER;
		GridData gridData = new GridData();
		gridData.horizontalAlignment = GridData.FILL;
		gridData.grabExcessHorizontalSpace = true;
		gridData.verticalAlignment = GridData.CENTER;
		GridLayout gridLayout = new GridLayout();
		gridLayout.numColumns = 2;
		label = new Label(this, SWT.NONE);
		label.setText("Login:");
		textLogin = new Text(this, SWT.BORDER);
		textLogin.setLayoutData(gridData);
		label1 = new Label(this, SWT.NONE);
		label1.setText("Password:");
		textPassword = new Text(this, SWT.BORDER | SWT.PASSWORD);
		textPassword.setLayoutData(gridData1);
		label2 = new Label(this, SWT.NONE);
		label2.setText("");
		checkBoxSavePassword = new Button(this, SWT.CHECK);
		checkBoxSavePassword.setText("Save password");
		checkBoxSavePassword.setLayoutData(gridData2);
		Label filler = new Label(this, SWT.NONE);
		link = new Link(this, SWT.NONE);
		link.setText("<a>Internet proxy settings...</a>");
		link.setLayoutData(gridData3);
		this.setLayout(gridLayout);
		setSize(new Point(320, 129));
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
